Skip to content

[AutoPR @azure-arm-commerce]-generated-from-SDK Generation - JS-5998147#37597

Closed
azure-sdk wants to merge 1 commit into
Azure:mainfrom
azure-sdk:sdkauto/@azure-arm-commerce-5998147
Closed

[AutoPR @azure-arm-commerce]-generated-from-SDK Generation - JS-5998147#37597
azure-sdk wants to merge 1 commit into
Azure:mainfrom
azure-sdk:sdkauto/@azure-arm-commerce-5998147

Conversation

@azure-sdk

Copy link
Copy Markdown
Collaborator

Configurations: 'specification/commerce/resource-manager/Microsoft.Commerce/Commerce/tspconfig.yaml', API Version: 2015-06-01-preview, SDK Release Type: beta, and CommitSHA: '087b93bee041c4e1fdc0296b8a96c933689f7a1e' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5998147 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

…mmerce/Commerce/tspconfig.yaml', API Version: 2015-06-01-preview, SDK Release Type: beta, and CommitSHA: '087b93bee041c4e1fdc0296b8a96c933689f7a1e' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5998147 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
@github-actions github-actions Bot added the Mgmt This issue is related to a management-plane library. label Mar 12, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 tool issue found in @azure/arm-commerce (v4.0.0-beta.4): the user agent string in the generated context file (src/api/usageManagementContext.ts) is hardcoded to 1.0.0-beta.1 instead of the correct package version 4.0.0-beta.4. The public API surface itself (rename of OfferTermInfoAutoGeneratedOfferTermInfo, introduction of RateCardOperations, UsageAggregatesOperations, KnownVersions, AzureClouds, etc.) shows no guideline violations — no broken client names, no re-ordered constructor parameters, no unknown type-safety issues, no missing exports, and no alpha versions anywhere.

📊 Structured Report
{"agent":"mgmt-reviewer","pr":37597,"summary":"issues_found","findings":[{"file":"sdk/commerce/arm-commerce/src/api/usageManagementContext.ts","line":37,"issueType":"tool","category":"version-mismatch","description":"User agent string is hardcoded to azsdk-js-arm-commerce/1.0.0-beta.1 but package version is 4.0.0-beta.4"}]}

Benchmarked by Management SDK PR Review

const endpointUrl =
options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
const userAgentInfo = `azsdk-js-arm-commerce/1.0.0-beta.1`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Tool Issuesrc/api/usageManagementContext.ts:37

const userAgentInfo = `azsdk-js-arm-commerce/1.0.0-beta.1`;

The user agent string embeds 1.0.0-beta.1, but the actual package version in both package.json and CHANGELOG.md is 4.0.0-beta.4. This version mismatch is a generation tool bug — the context file was initialized with an incorrect version.

Fix: Update the user agent string to reflect the correct package version:

const userAgentInfo = `azsdk-js-arm-commerce/4.0.0-beta.4`;

Also report this in the generation tool repository so it is not repeated in future regenerations.

@github-actions

Copy link
Copy Markdown
Contributor

Hi @azure-sdk. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

@github-actions github-actions Bot added the no-recent-activity There has been no recent activity on this issue. label May 29, 2026
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Hi @azure-sdk. Thank you for your contribution. Since there hasn't been recent engagement, we're going to close this out. Feel free to respond with a comment containing /reopen if you'd like to continue working on these changes. Please be sure to use the command to reopen or remove the no-recent-activity label; otherwise, this is likely to be closed again with the next cleanup pass.

@github-actions github-actions Bot closed this Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mgmt This issue is related to a management-plane library. mgmt-review-needed no-recent-activity There has been no recent activity on this issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants